/**
* @(#)com.pylc.model.dao.impl.testPointDaoImpl.java
* 
* @date 2012-6-17
*/
package com.pylc.model.dao.impl;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.pylc.model.dao.PointDao;
import com.pylc.model.entity.Point;

/** 
 * 
 * @author <a href="mailto:yuanyichen@gmail.com">（H0rol4</a>
 * @version 1.0 
 */

public class testPointDaoImpl {
	
	private PointDao pointDao = null;
	
	@Before
    public void before() {
        String[] paths = { "classpath:applicationContext.xml" };
        ApplicationContext ctx = new ClassPathXmlApplicationContext(paths);
        pointDao = (PointDaoImpl) ctx.getBean("pointDaoImpl");
    }

	@Test
	public void testLoad() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetPKArray() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetTotalCount() {
		fail("Not yet implemented");
	}

	@Test
	public void testSave() {
		Point point = new Point();
		point.setDesc("created by junit test case");
		point.setPoints(120L);
		point.setType(0);
		pointDao.save(point);
	}

	@Test
	public void testUpdate() {
		fail("Not yet implemented");
	}

}
